package com.gitee.swsk33.providerdemo.api;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/provider/name")
public class NameAPI {

	@Value("${spring.application.name}")
	private String name;

	@GetMapping("/get")
	public String getName() {
		return name;
	}

}